Kameleon-Plus  0.3.2
Public Member Functions | Static Public Member Functions | List of all members
ccmc::Adapt3DInterpolator Class Reference

TODO: brief description of BATSRUSInterpolator class. More...

#include <Adapt3DInterpolator.h>

Inheritance diagram for ccmc::Adapt3DInterpolator:
Inheritance graph
[legend]
Collaboration diagram for ccmc::Adapt3DInterpolator:
Collaboration graph
[legend]

Public Member Functions

 Adapt3DInterpolator (Model *modelReader)
 
float interpolate (const std::string &, const float &c0, const float &c1, const float &c2)
 
float interpolate (const std::string &, const float &c0, const float &c1, const float &c2, float &dc0, float &dc1, float &dc2)
 
float interpolate (const long &variable_id, const float &c0, const float &c1, const float &c2)
 
float interpolate (const long &variable_id, const float &c0, const float &c1, const float &c2, float &dc0, float &dc1, float &dc2)
 
virtual ~Adapt3DInterpolator ()
 
- Public Member Functions inherited from ccmc::Interpolator
 Interpolator ()
 
virtual float getConversionFactor (const std::string &)
 
virtual float getConversionFactor (const long &variable_id)
 
std::string getModelName ()
 
virtual ~Interpolator ()
 
void setModelReader (Model *reader)
 

Static Public Member Functions

static void calculation1 (const float &a, const float &b, const float &c, const float &d, const float &e, float &result)
 

Additional Inherited Members

- Protected Attributes inherited from ccmc::Interpolator
ModelmodelReader
 
std::string modelName
 

Detailed Description

TODO: brief description of BATSRUSInterpolator class.

TODO: full description of BATSRUSInterpolator class

Constructor & Destructor Documentation

ccmc::Adapt3DInterpolator::Adapt3DInterpolator ( Model modelReader)
Parameters
modelReaderPointer to the Model object containing the appropriate variable maps. Adapt3DInterpolator should be returned by a Adapt3D::createNewInterpolator() call.

Here is the call graph for this function:

ccmc::Adapt3DInterpolator::~Adapt3DInterpolator ( )
virtual

Destructor

Member Function Documentation

void ccmc::Adapt3DInterpolator::calculation1 ( const float &  a,
const float &  b,
const float &  c,
const float &  d,
const float &  e,
float &  result 
)
static
float ccmc::Adapt3DInterpolator::interpolate ( const std::string &  variable,
const float &  c0,
const float &  c1,
const float &  c2 
)
virtual
Parameters
variable
c0X component of the position
c1Y component of the position
c2Z component of the position
Returns

Implements ccmc::Interpolator.

float ccmc::Adapt3DInterpolator::interpolate ( const std::string &  variable,
const float &  c0,
const float &  c1,
const float &  c2,
float &  dc0,
float &  dc1,
float &  dc2 
)
virtual

Interpolation method. Note that using the variable ID is significantly faster than using the variable string.

Parameters
variableThe input variable.
c0X component of the position
c1Y component of the position
c2Z component of the position
dc0Reference to a variable to store the delta for component 0
dc1Reference to a variable to store the delta for component 1
dc2Reference to a variable to store the delta for component 2
Returns
The interpolated value at position (c0,c1,c2) with deltas (dc0,dc1,dc2)

TODO: figure out what to do about the dc0,dc1,dc2 values

lets see if required variables are in memory

Implements ccmc::Interpolator.

Here is the call graph for this function:

float ccmc::Adapt3DInterpolator::interpolate ( const long &  variable_id,
const float &  c0,
const float &  c1,
const float &  c2 
)
virtual
Parameters
variable_id
c0X component of the position
c1Y component of the position
c2Z component of the position
Returns

Implements ccmc::Interpolator.

Here is the call graph for this function:

float ccmc::Adapt3DInterpolator::interpolate ( const long &  variable_id,
const float &  c0,
const float &  c1,
const float &  c2,
float &  dc0,
float &  dc1,
float &  dc2 
)
virtual

Interpolation method. Note that using the variable ID is significantly faster than using the variable string.

Parameters
variable_idA long representing the variable ID.
c0X component of the position
c1Y component of the position
c2Z component of the position
dc0Reference to a variable to store the delta for component 0
dc1Reference to a variable to store the delta for component 1
dc2Reference to a variable to store the delta for component 2
Returns
The interpolated value at position (c0,c1,c2) with deltas (dc0,dc1,dc2)

Implements ccmc::Interpolator.

Here is the call graph for this function:


The documentation for this class was generated from the following files: